package com.situ.day6;

import org.junit.Test;

import java.lang.String;

public class Demo {

    @Test
    public void test1() {
        Student student = new Student(1, "zhansgan", 23, "男", "Java210702");
        // com.situ.day6.Student@22927a81
        System.out.println(student);
    }

    void show(int a, char b, double c){

    }

    int show(int a, double c, char b){
        return 0;
    }

    // define:定义
    // 'show(int, char, double)' is already defined in 'com.situ.day6.Demo'
    /*void show(int x, char y, double z){

    }*/

    public static void main(String[] args) {
        // Math math = new Math();
        int max = Math.max(3, 6);
        System.out.println(max);// 6

        MathUtil myMath = new MathUtil();
        int max1 = myMath.max(3, 6);
        System.out.println(max1);

        int max2 = MathUtil.max(3, 6);

        int[] array = {34, 56, 7, 23};
        int maxValue = ArrayUtil.max(array);
        System.out.println(maxValue);

        Person person = new Student();
        person = new Teacher();
        person.name = "r4";
        //person.
        // Student student = new Person();
    }
}
